package com.exam.mapper;

import com.exam.po.MultiQuestion;
import com.exam.po.MultiQuestionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface MultiQuestionMapper {
    int countByExample(MultiQuestionExample example);

    int deleteByExample(MultiQuestionExample example);

    int deleteByPrimaryKey(Integer questionid);

    int insert(MultiQuestion record);

    int insertSelective(MultiQuestion record);

    List<MultiQuestion> selectByExample(MultiQuestionExample example);

    MultiQuestion selectByPrimaryKey(Integer questionid);

    int updateByExampleSelective(@Param("record") MultiQuestion record, @Param("example") MultiQuestionExample example);

    int updateByExample(@Param("record") MultiQuestion record, @Param("example") MultiQuestionExample example);

    int updateByPrimaryKeySelective(MultiQuestion record);

    int updateByPrimaryKey(MultiQuestion record);

    /*
     * @Author mahaoqi
     * @Description 查找 id数组   自动组卷
     * @Date 2021/1/13 10:50
     * @Param [subject, page, pageSize]
     * @return java.lang.Integer[]
     **/
    Integer[] findMultiids(@Param("subject")String subject,
                           @Param("page")Integer page,
                           @Param("pageSize") Integer pageSize);
}